package com.example.ratingbar;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.Button;
import android.widget.RatingBar;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {
    RatingBar ratingBar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ratingBar = findViewById(R.id.ratingbar);
//        String rating = String.valueOf(ratingBar.getRating());
//        Toast.makeText(this, "Rating:"+rating, Toast.LENGTH_SHORT).show();
//        String stepSize=String.valueOf(ratingBar.getStepSize());
//        Toast.makeText(this, "StepSize:"+stepSize, Toast.LENGTH_SHORT).show();
        
    }
}